//**********实体模型发布记录***********/;
import request from '@/utils/request.js';

/**
 * 激活版本
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  id:'', // 	类型:integer 非必填
 * @returns
 * ********
 */
export function putHmmodelpublishActivate(data={}, config={}){
  return request({
    method: 'put',
    data,
    url: `/api/hm-model-publish/activate`,
    ...config,
  }) 
}

/**
 * 跨版本创建版本
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  activated:'', // 	类型:boolean 非必填
 *  entityModelIds:'', // 	类型:array 非必填
 *  modelId:'', // 	类型:integer 非必填
 *  remark:'', // 	类型:string 非必填
 * @returns
 * ********
 */
export function postHmmodelpublishBymultiversion(data={}, config={}){
  return request({
    method: 'post',
    data,
    url: `/api/hm-model-publish/by-multi-version`,
    ...config,
  }) 
}

/**
 * 基于现有版本创建版本
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  activated:'', // 	类型:boolean 非必填
 *  publishId:'', // 	类型:integer 非必填
 *  remark:'', // 	类型:string 非必填
 * @returns
 * ********
 */
export function postHmmodelpublishBypublish(data={}, config={}){
  return request({
    method: 'post',
    data,
    url: `/api/hm-model-publish/by-publish`,
    ...config,
  }) 
}

/**
 * 根据草稿创建版本
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  activated:'', // 	类型:boolean 非必填
 *  id:'', // 	类型:integer 非必填
 *  remark:'', // 	类型:string 非必填
 * @returns
 * ********
 */
export function postHmmodelpublishByscript(data={}, config={}){
  return request({
    method: 'post',
    data,
    url: `/api/hm-model-publish/by-script`,
    ...config,
  }) 
}

/**
 * 列表
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params 参数 
 * modelId:'', //modelId 必填
 * @returns
 * ********
 */
export function getHmmodelpublishList(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: `/api/hm-model-publish/list`,
    ...config,
  }) 
}